<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../admin/libs/jquery-1.12.4.min.js"></script>
    <script src="../admin/libs/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../admin/libs/bootstrap/css/bootstrap.min.css">

    <script src="../admin/libs/jquery.twbsPagination.js"></script>


</head>

<body>
    <ul id="pagination" class="pagination-sm"></ul>
</body>

</html>
<script>
    $(function () {
        $('#pagination').twbsPagination({
            //总页数
            totalPages: 50,
            //开始页
            startPage: 1,
            //可见页
            visiblePages: 6,
            //加载出来点击 需要取消否则会进入递归
            initiateStartPageClick: false,

            first: '首页',
            prev: '上一页',
            next: '下一页',
            last: '最后一页',
            //点击的回调函数
            onPageClick: function (event, page) {
                console.log(page);
            }

        });
    })
</script>